package com.nari.ysphd.fragment;

import android.os.Bundle;
import android.support.v4.app.Fragment;

import com.nari.ysphd.R;
import com.nari.ysphd.adapter.ConcludedMeetingsAdapter;
import com.nari.ysphd.base.AbsAdapter;
import com.nari.ysphd.base.BaseMeetingFragment;

/**
 * Create by sunxunchao on 2019/3/29
 * 已经结束的互动
 */
public class ConcludedMeetingsFragment extends BaseMeetingFragment {

    private static final String TAG = "ConcludedFragment";

    private static final String MEETING_O_FWORD = "meetingOfWord";

    public static Fragment newInstance(String meetingOfWord){
        Bundle bundle=new Bundle();
        bundle.putString(MEETING_O_FWORD, meetingOfWord);
        ConcludedMeetingsFragment f = new ConcludedMeetingsFragment();
        f.setArguments(bundle);
        return f;
    }

    @Override
    protected AbsAdapter getAdapter() {
        return new ConcludedMeetingsAdapter(getActivity(), R.layout.adapter_concluded_meeting);
    }

    @Override
    protected String getMeetingListType() {
        return "1";
    }

    @Override
    protected String getMeetingOfWords() {
        return getArguments().getString(MEETING_O_FWORD);
    }
}
